package com.gs.mybatisflextest.config;


import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;
import org.stone.beecp.BeeDataSource;

import javax.sql.DataSource;

@Configuration
public class MyBatisFlexDataConfig {

    @Bean(value = "db1", typed = true)
    public DataSource db1(@Inject("${flextest.db1}") BeeDataSource ds) {
        return ds;
    }
}
